<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
            console.log(location.href);
    </script>
</head>
<body>
    <button onclick="location.href = 'http://www.baidu.com'">跳转百度</button>
    <button onclick="location.reload();">刷新</button>

</body>
</html>